package cn.xspace.module.other.http.resp;

import org.json.JSONObject;

import android.util.Log;

import com.google.gson.Gson;
import com.xspace.android.xafcommon.been.UserInfoBean;

import cn.xspace.module.other.http.ResponseMsg;

/**
 * 
 * @ClassName: QueryUserInfoResp
 * @author:mawen
 * @Date：2014-3-3
 * @version V1.0.0
 * @Description: 个人信息返回类
 */
public class QueryUserInfoResp extends ResponseMsg {
	public static final int QUERY_USERINFO_ERROR = -1;
	public static final int QUERY_USERINFO_SUCCESS = 0;
	public UserInfoBean userInfoBean;
	public String userJson="";
	 public JSONObject json;
	public static String group_hx;
	@Override
	protected void parseJson(String jsonData) throws Exception {
		json = new JSONObject(jsonData);
		userJson=json.getString("user");
		Log.d("QueryUserInfo==>",jsonData+"*****"+userJson);
//		OtherJsonReturnBean mGsonBean=new OtherJsonReturnBean();
//		mGsonBean = mGson.fromJson(jsonData, OtherJsonReturnBean.class);
		userInfoBean=new Gson().fromJson(userJson,UserInfoBean.class);
//		JSONObject j = new JSONObject(userJson);
	}
}


